package com.gildedrose;

public class Conjured extends Item{

    public Conjured(String name, int sellIn, int quality) {
        super(name, sellIn, quality);
    }

    public Conjured(int sellIn, int quality) {
        super("Conjured", sellIn, quality);
    }

    @Override
    public void updateQualityAfterExpiration() {
        this.quality = Math.max(this.quality - 2, 0);
    }

    @Override
    public void updateQuality() {
        this.quality = Math.max(this.quality - 2, 0);
    }
}
